package com.qf.feign.api;

import com.qf.entity.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "shop-address",path = "/addressController")
public interface AddressService {

    @GetMapping("/getAddressListByUid/{uid}")
    public List<Address> getAddressListByUid(@PathVariable("uid") Integer uid);

    @RequestMapping("/getAddressById/{id}")
    public Address getAddressById(@PathVariable("id") Integer id);
}
